/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: User
 * Author:   kadibeieun
 * Date:     2019/9/3 10:16
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.afd.pojo;

import lombok.Data;
import net.minidev.json.annotate.JsonIgnore;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/9/3
 * @since 1.0.0
 */

@Data
@Table(name = "tb_user")
public class User {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    @JsonIgnore
    private String username;
    private String password;
    private String phone;
    private String salt;
    private Date created;
    /**
     * 非映射到数据库表
     */
    @Transient
    private String note;


}